<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">运营管理</h1>
</div>

<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            回款投资人
        </div>
        <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
        <div class="panel-body b-b b-light">
            <div class="col-sm-4" ng-controller="DatepickerDemoCtrl">
                <label><font><font>日期:</font></font></label>
                <p class="input-group">
                    <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="RepayProductInfo.time"
                        is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </p>
            </div>
            <div class="col-sm-12">
                <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="search()">查询</button>
                <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
                <span><button class="btn btn-info btn-addon pull-right"  ng-if="RepayProductInfoFoInvest==''" disabled>导出</button></span>
                <span id="xls"><button data-type="xls" ng-if="RepayProductInfoFoInvest!=''" class="btn btn-info btn-addon pull-right">导出</button></span>
            </div>
            
        </div>
        <div class="table-responsive">
            <table id="tab" class="table table-striped m-b-none">
                <thead>
                    <tr>
                        <th style="width:10%">姓名</th>
                        <th style="width:10%">投资人Id</th>
                        <th style="width:10%">手机号</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-if="RepayProductInfoFoInvest==''">
                        <td colspan="9">当前无任何数据</td>
                    </tr>
                    <tr ng-repeat="obj in RepayProductInfoFoInvest">
                        <td ng-bind="obj.FullName"></td>
                        <td ng-bind="obj.InvestUserId"></td>
                        <td ng-bind="obj.Mobile"></td>

                    </tr>
                </tbody>
            </table>
        </div>

    </div>
</div>
<script src="js/xls/Blob.js"></script>
<script src="js/xls/FileSaver.js"></script>
<script src="js/xls/tableExport.js"></script>
<script>
    var $exportLink = document.getElementById('xls');
    $exportLink.addEventListener('click', function (e) {
        e.preventDefault();
        if (e.target.nodeName === "BUTTON") {
            tableExport('tab', '回款投资人名单', e.target.getAttribute('data-type'));
        }
    }, false);

</script>